/*
 *  Copyright 2015-2016, RenGu Technology (BeiJing) Co., Ltd.
 *  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIR PARTIES,
 *  COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  AcctStatusEnum
 *
 *  Edit History:
 *      lizhangtao Created on 2020年04月09日
 *
 */
package cc.rengu.igas.acct.common.enums;

/**
 * 日切状态枚举
 *
 * @author lizhangtao
 * @version 1.0
 * @date 2020/5/8
 */
public enum CutDayStatusEnum {
    /**
     * 日切开始
     */
    BEGIN("0", "日切开始"),
    /**
     * 日切结束
     */
    END("1", "日切结束"),
    ;
    private String cutDayStatus;
    private String cutDayDesc;

    CutDayStatusEnum(String cutDayStatus, String cutDayDesc) {
        this.cutDayStatus = cutDayStatus;
        this.cutDayDesc = cutDayDesc;
    }

    public String getCutDayStatus() {
        return cutDayStatus;
    }

    public String getCutDayDesc() {
        return cutDayDesc;
    }


    public static CutDayStatusEnum getInstance(String cutDayStatus) {
        switch (cutDayStatus) {
            case "0":
                return BEGIN;
            case "1":
                return END;
            default:
                return null;
        }
    }
}
